package com.aispeech.task.mgr.fsm;

import com.aispeech.task.lasr.event.EventType;

import java.io.Serializable;

public class Transition implements Serializable {
	private final EventType type;
	private final State targetState;

	public Transition(EventType type, State state) {
		this.type = type;
		this.targetState = state;
	}

	public EventType type() {
		return type;
	}

	public State target() {
		return targetState;
	}
}
